package rmi;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

import bean.Medecin;
import bean.Medicament;
import bean.Ordonnance;
import bean.Patient;
import bean.Prescription;
import bean.RmiBean;

public interface ServeurRmiInterface extends Remote {

	public Medecin authentification(Medecin medecin) throws RemoteException;

	public int ajouter(RmiBean rmiBean) throws RemoteException;

	public boolean modifier(RmiBean rmiBean) throws RemoteException;

	public boolean supprimer(RmiBean rmiBean) throws RemoteException;

	public ArrayList<Patient> rechercherPatient(String nom, String prenom,
			Integer debut, Integer nombre) throws RemoteException;

	public ArrayList<Medicament> rechercherMedicament(String nom,
			Integer debut, Integer nombre) throws RemoteException;

	public ArrayList<Ordonnance> rechercherOrdonnance(Integer idPatient,
			Integer debut, Integer nombre) throws RemoteException;

	public ArrayList<Prescription> rechercherPrescription(Integer idOrdonnance,
			Integer debut, Integer nombre) throws RemoteException;

	public Ordonnance getOrdonnance(Integer id) throws RemoteException;

	public Medecin getMedecin(Integer id) throws RemoteException;

	public Patient getPatient(Integer id) throws RemoteException;

	public Medicament getMedicament(Integer id) throws RemoteException;

}
